package com.juneng.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 课程信息实体类
 *
 * @author zds
 * @since 2021-07-08
 */
@Data
@ApiModel(value = "Course对象", description = "课程信息")
@TableName("course")
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程信息
     */
    @ApiModelProperty(value = "课程信息")
    @TableId(value = "course_id", type = IdType.AUTO)

    private Long courseId;

    @ApiModelProperty(value = "按钮图片")
    private String courseButtonIcon;
    /**
     * 伪删除
     */
    @ApiModelProperty(value = "伪删除")

    private Integer courseStatus;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseDate;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseUpdateDate;
    /**
     * 教师id
     */
    @ApiModelProperty(value = "教师id")

    private Long teacherId;
    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")

    private String courseImage;
    /**
     * 关注信息表Id
     */
    @ApiModelProperty(value = "关注信息表Id")

    private Long followId;
    /**
     * 课程名字
     */
    @ApiModelProperty(value = "课程名字")

    private String courseName;
    /**
     * 课程简介
     */
    @ApiModelProperty(value = "课程简介")

    private String courseIntroduction;
    /**
     * 课程描述
     */
    @ApiModelProperty(value = "课程描述")

    private String courseDescription;
    /**
     * 课程科目
     */
    @ApiModelProperty(value = "课程科目")

    private String courseSubjects;

    @ApiModelProperty(value = "权重排序")
    private Integer coursePosition;
}
